package com.jm.chat.utils;

import android.widget.ImageView;
import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;

/**
 * glide图片加载
 * Created by zhu.px on 2016/12/13.
 */
public class ImageLoadingUtil {

    public static void loadingImg(ImageView v, String url) {
        Glide.with(v.getContext())
                .load(url)
                .diskCacheStrategy(DiskCacheStrategy.ALL)
                .crossFade()
                .into(v);
    }
}
